<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 transitional//EN">
<html>
<head>
<title>Level Element</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Level</h1>

<p>Base element for level elements within a hierarchy.</p>

<h3>Description</h3>

<p>The Level is an abstract element that defines the basic
properties of a OLAP level element. It has two derived classes, one is
tabular level and another is ODA level.</p>

<p>Level is the real element which defined the column expression
from the dataset. You can set sort, filter, TOC on the level. The column
expression defined on the level could be dynamic reference to a dataset,
also it could be static that user defined on the level by a value list.</p>

<h3>See Also</h3>

<h2 class="property">dataType</h2>

<p>Level data type property.</p>

<h3>Description</h3>
<p>This property gives out the data type of the level resulting
data.</p>

<h3>See Also</h3>
<h2 class="property">dateTimeLevelType</h2>

<p>Date time type.</p>
<h3>Choices</h3>
<ul>
	<li>month</li>
	<li>quarter</li>
	<li>week-of-year</li>
	<li>week-of-month</li>
	<li>day-of-year</li>
	<li>day-of-month</li>
	<li>day-of-week</li>
	<li>hour</li>
	<li>minute</li>
	<li>second</li>
</ul>

<h3>Description</h3>

<p>This property specifies the detail type if the level is date
time. This is used to speed up the performance.</p>

<h3>See Also</h3>
<h2 class="property">dateTimeFormat</h2>

<p>Date time format applied on this level element.</p>

<h3>Description</h3>

<p>This property defines how to format the value if the data type of
the level is date time.It contains the format pattern, category and
locale. If the the data type of the level is date time and you don't set
this property, the output is the general string calling toString method
in Object.</p>

<h3>See Also</h3>
<h2 class="property">intervalBase</h2>

<p>In conjunction with Interval and IntervalRange, determines how
data is divided into groups.</p>

<h3>Description</h3>
<p>In conjunction with Interval and IntervalRange, determines how
data is divided into groups.</p>

<h2 class="property">interval</h2>

<p>When creating intervals, this property allows grouping on a range
of contiguous values.</p>

<h3>Choices</h3>
<ul>
	<li>none: Group on individual values.</li>

	<li>prefix: Group on a string prefix</li>

	<li>interval: Group on a numeric interval.</li>

</ul>
<h3>Description</h3>
<p>This property allows the level element to include a range of contiguous
values. For example, a monthly sales report may want to summarize a list
of individual transactions, each of which has a transaction date. Using
the Month interval, BIRT will cause a break to occur each time the
transaction dates move into a different calendar month.</p>
<p>Use this property with the <code> intervalRange</code> property
to select a set of contiguous values. For example, a bi-monthly report
would use the Month <code>interval</code> with an <code>intervalRange</code>
of 2.</p>

<h3>See Also</h3>
<p><code>intervalRange</code> Property</p>

<h2 class="property">intervalRange</h2>

<p>Number of contiguous groups to merge to create a single group.</p>

<h3>Description</h3>
<p>When creating intervals, this attribute allows grouping on a
range of contiguous values. For example, to show data over the span of
three hours, set the grouping interval to hours and the range to 3. The
user enters the interval range here.</p>
<p>The following shows the meaning of the range for each interval
type.</p>
<table class="section-table">
	<thead>
		<tr>
			<td>Interval</td>
			<td>Meaning of Range</td>
		</tr>
	</thead>
	<tr>
		<td>None</td>
		<td>&nbsp;Ignored</td>
	</tr>
	<tr>
		<td>Prefix</td>
		<td>&nbsp;The number of characters in the prefix.</td>
	</tr>
	<tr>
		<td>Date/Time</td>
		<td>&nbsp;The number of the units.</td>
	</tr>
	<tr>
		<td>Interval</td>
		<td>&nbsp;The numeric interval</td>
	</tr>
</table>
<p></p>

<h3>See Also</h3>
<p><code>interval</code> Property</p>

<h3>See Also</h3>
<h2 class="property">levelType</h2>

<p>Type of the level.</p>
<h3>Choices</h3>
<ul>
	<li>dynamic:get the query result from data base directly</li>
	<li>mirrored: get the query result from the data base and then do
	some mirror handling</li>
</ul>

<h3>Description</h3>

<p>This property indicates whether this level is dynamic or
mirrored. If the level is dynamic, you can define a list of level
attribute on it to do filter operation on the query result from data
base. If the level is mirrored, you can define a list of rules as static
values to do mirroring and set an BIRT expression as the default value,
which is used as default during mirroring.</p>

<h3>See Also</h3>
<h2 class="property">staticValues</h2>

<p>Series of rules applied on this level.</p>

<h3>Description</h3>

<p>This property defines a list of rules. If the level type is
mirrored, you can add a list of rule structures as the static values to
do mirroring.</p>

<h3>See Also</h3>
<h2 class="property">defaultValue</h2>

<p>Default value expression applied on this level.</p>

<h3>Description</h3>

<p>This property defines.</p>

<h3>See Also</h3>
</body>
</html>